import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import FootballTeam from '@/components/page/FootballTeam'
import DataTemplate from '@/components/page/DataTemplate'
import Hi from '@/components/page/Hi'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/Hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/FootballTeam',
      name: 'FootballTeam',
      component: FootballTeam
    },
    {
      path: '/',
      name: 'DataTemplate',
      component: DataTemplate
    },
    {
      path: '/hi',
      name: 'hi',
      component: Hi
    },
    {
      path: '/league/:name',
      name: 'league',
      component: DataTemplate
    },
    {
      path: '/ft/:name',
      name: 'ftPara',
      component: FootballTeam
    }
  ]
})
